package com.tjetc.view;

import com.tjetc.domain.Park;

import java.util.Scanner;

public class AdminView {
    private static Scanner sc=new Scanner(System.in);
    public void start() {
        while (true){
            System.out.println("1.管理员管理");
            System.out.println("2.动物分类管理");
            System.out.println("3.动物信息管理");
            System.out.println("4.领养申请管理");
            System.out.println("5.园区信息管理");
            System.out.println("6.园区分配");
            System.out.println("0.返回上一级");
            System.out.println("请输入你的选择");
            int i=sc.nextInt();
            switch (i){
                case 1:
                    AdminManagView adminManagView = new AdminManagView();
                    adminManagView.start();
                    break;
                case 2:
                    CategoryView categoryView = new CategoryView();
                    categoryView.start();
                    break;
                case 3:
                    AnimalView animalView=new AnimalView();
                    animalView.start();
                    break;
                case 4:
                    ApplicationManageView applicationManageView=new ApplicationManageView();
                    applicationManageView.start();
                    break;
                case 5:
                    ParkManageView parkManageView=new ParkManageView();
                    parkManageView.start();
                    break;
                case 6:
                    ParkAnimalView parkAnimalView=new ParkAnimalView();
                    parkAnimalView.start();
                    break;
                case 0:
                    return;
                default:
                    System.out.println("请重新输入");
            }

        }
    }
}
